package com.xmy.study.feign;

import com.xmy.study.entity.StudentAccount;
import com.xmy.study.respons.ResStudentClassType;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "MATH-ERP")
public interface IStudentFeignClient {


    @GetMapping("/api/erp/studentAccount/accountIsAt")
    public abstract Long accountIsAt(@RequestParam("account") String account);

    @GetMapping("/api/erp/studentAccount/login")
    public StudentAccount login(@RequestParam("account") String account, @RequestParam("pwd") String pwd);

    @GetMapping("/api/erp/studentAccount/getStudentClassType")
    public List<ResStudentClassType> getStudentClassType(@RequestParam("studentId") String studentId);
}
